package com.site.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.site.util.base.po.BaseApplicationInfo;

/**
 * 广告
 * @author lee
 * @date 2013年11月30日
 */
@Entity
@Table(name = "t_advertise")
public class AdvertiseInfo extends BaseApplicationInfo {
	
	private static final long serialVersionUID = 2543963762056943734L;
	private Long id;
	/*
	 * 广告编号
	 */
	private String ano;
	/*
	 * 广告标题
	 */
	private String title;
	/*
	 * 广告URL
	 */
	private String url;
	/*
	 * 图片URL
	 */
	private String imagePath;
	/*
	 * 广告内容
	 */
	private String content;
	/*
	 * 广告类型（首页：INDEX_TYPE）
	 */
	private String type;
	/*
	 * 排序
	 */
	private Integer orderBy;

	@Id
	@Column(name = "ID")
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "increment")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name = "TITLE")
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	@Column(name = "URL")
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	@Column(name = "IMAGE_PATH")
	public String getImagePath() {
		return imagePath;
	}
	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}
	@Column(name = "CONTENT")
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	@Column(name = "TYPE")
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Column(name = "ORDER_BY")
	public Integer getOrderBy() {
		return orderBy;
	}
	public void setOrderBy(Integer orderBy) {
		this.orderBy = orderBy;
	}
	@Column(name = "A_NO")
	public String getAno() {
		return ano;
	}
	public void setAno(String ano) {
		this.ano = ano;
	}
}
